package com.woniuxy.creditsystem.mortgagemag.service;

import com.github.pagehelper.PageInfo;
import com.woniuxy.creditsystem.common.bean.HouseInfo;
import com.woniuxy.creditsystem.common.bean.VehicleFind;
import com.woniuxy.creditsystem.common.bean.VehicleInfo;
import org.apache.ibatis.annotations.Param;


public interface IVehicleService {

    /**
     * 新增车辆信息
     * @param vehicleInfo
     * @return
     */
    int saveVehicleInfo(VehicleInfo vehicleInfo);


    /**
     *
     * @param id
     * @return
     */
    VehicleInfo getOneById(Long id);



    /**
     * 分页查询
     * @param
     * @param vehicleFind
     * @return
     */

    PageInfo<VehicleInfo> findAllByParams(int pageNum, int pageSize, VehicleFind vehicleFind);

    /**
     * 对车辆信息进行修改
     * @param vehicleInfo
     * @return
     */
    int updateVehicle( VehicleInfo vehicleInfo);

    /**
     * 删除车辆信息
     * @param id
     * @return
     */
    int deleteVehicle(Long id);

}
